package com.qingdai.emuns;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;


@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "订单")
public class OrderDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private Integer id;

    @Schema(description = "收货地址id")
    private Integer deliverAddressId;

    @Schema(description = "店铺id")
    private Integer shopId;

    //w
    @Schema(description = "店铺名称")
    private String shopName;

    @Schema(description = "买家id")
    private Integer buyerId;

    //w
    @Schema(description = "买家名称")
    private String buyerName;

    @Schema(description = "商品id集合")
    private String commodityIdList;

    //w
    @Schema(description = "商品名称集合")
    private String commodityNameList;

    @Schema(description = "商品数量集合")
    private String commodityNumberList;

    @Schema(description = "订单创建时间")
    private String creationTime;

    @Schema(description = "订单支付时间")
    private String paymentTime;

    @Schema(description = "订单发货时间")
    private String sendTime;
}
